/*
 * Air Roommates Accounts
 *Copyright 2009 - Julien EVANO & Enguerran GILLET
 *
 *This program is free software: you can redistribute it and/or modify
 *it under the terms of the GNU General Public License as published by
 *the Free Software Foundation, either version 3 of the License, or
 *(at your option) any later version.
 *
 *This program is distributed in the hope that it will be useful,
 *but WITHOUT ANY WARRANTY; without even the implied warranty of
 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *GNU General Public License for more details.
 *
 *You should have received a copy of the GNU General Public License
 *along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *Distributed under the terms of the GNU GPL v3.
 *http://www.gnu.org/licenses/gpl-3.0.html
 */

/*
 * *************
 * Views Records
 * *************
 * Only the necessary views for the front end are described
 */
air.trace('ARA.data.record.view');
Ext.namespace('ARA.data.record.view');
/**
 * ProfilTreeNode Record
 * @view v_profilTreeView
 * @description tree view display
 * @field id unique
 * @field text
 * @field parentId
 * @field leaf
 */
ARA.data.record.view.ProfilTreeNode = Ext.data.Record.create([
    {name: 'id', type:'string'},
    {name: 'text', type:'string'},
    {name: 'parentId', type:'string'},
    {name: 'leaf', type:'boolean'}
]);

/**
 * GroupTreeNode Record
 * @view v_groupTreeView
 * @description tree view display
 * @field id unique
 * @field text
 * @field parentId
 * @field leaf
 */
ARA.data.record.view.GroupTreeNode = Ext.data.Record.create([
    {name: 'id', type:'string'},
    {name: 'text', type:'string'},
    {name: 'parentId', type:'string'},
    {name: 'leaf', type:'boolean'}
]);

/**
 * ProfilGroupAttachment Record
 * @view v_allProfilsAndAllGroupsAttachment
 * @description attachment grid display
 * @field groupId
 * @field profilId
 * @field balance
 * @field isAttached
 */
ARA.data.record.view.ProfilGroupAttachment = Ext.data.Record.create([
    {name: 'groupId', type:'string'},
    {name: 'profilId', type:'string'},
    {name: 'balance', type:'float'},
    {name :'isAttached', type :'boolean'}
]);
